package com.fac.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 更新角色DTO
 */
@Data
@ApiModel(description = "更新角色请求参数")
public class RoleUpdateDTO implements Serializable {

    @NotNull(message = "角色ID不能为空")
    @ApiModelProperty(value = "角色ID", example = "1", required = true)
    private Long roleId;

    @NotBlank(message = "角色编码不能为空")
    @ApiModelProperty(value = "角色编码", example = "ADMIN", required = true)
    private String code;

    @NotBlank(message = "角色名称不能为空")
    @ApiModelProperty(value = "角色名称", example = "系统管理员", required = true)
    private String name;

    @ApiModelProperty(value = "角色描述", example = "系统管理员，拥有所有权限")
    private String description;

    @ApiModelProperty(value = "状态：1启用，0禁用", example = "1")
    private Integer status;
} 